<!--
Copyright 2014 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<script>
function CTBuilderFailure(tree, masterUrl, builder, state, timeSinceLastUpdate, pendingBuilds) {
  this.tree = tree;
  this.key = masterUrl + "::" + builder + "::" + state;
  this.masterUrl = masterUrl;
  this.builder = builder;
  this.state = state;
  this.timeSinceLastUpdate = timeSinceLastUpdate;
  this.pendingBuilds = pendingBuilds;
  this.hoursSinceLastUpdate = (timeSinceLastUpdate / (60 * 60)).toFixed(2);
}

CTBuilderFailure.prototype.annotations = function() {
  return this.annotation ? [this.annotation] : [];
};


</script>
